package DesignPatern.A19_访问者模式.QSB.A03_高级模式;

/**
 * @Author: Du
 * @Date: 2021/8/6 8:45
 */
public class CommonEmployee extends Employee
{
    private String job;
    
    public String getJob()
    {
        return job;
    }
    
    public void setJob(String job)
    {
        this.job = job;
    }
    
    @Override
    protected String getOtherInfo()
    {
        return "工作" + this.job;
    }
    
    @Override
    protected void accept(IVisitor iVisitor)
    {
        iVisitor.visit(this);
    }
}
